#include <glf/config.h>

#if GLF_COMPILER_GCC

#include <glf/core/str.h>

namespace  glf{


void Breakpoint()
{
#if PLATFORM_IPHONE //
	#if defined(__arm__) || defined (__thumb__)
		asm("trap");
	#else
		int* a_Bad_Bad_Bad_Pointer = 0;
		*a_Bad_Bad_Bad_Pointer = 0xBAADF00D;
	#endif
#elif (defined(__i386__) || defined(__x86_64__) ) && !defined(PLATFORM_NACL)
	asm("int $3");
#else
	int* a_Bad_Bad_Bad_Pointer = 0;
	*a_Bad_Bad_Bad_Pointer = 0xBAADF00D;
#endif
}

AssertBehavior Assert(const char *file, int line, const char *fmt, ... )
{

	struct StructAssert
	{
		StructAssert* member;
	};
	{ StructAssert* __assert__=0;  __assert__->member = 0; }

	return ASSERT_DONOTHING;
}

} //namespace glf

#endif
